#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/3/11 10:55
# @Author  : jeff
# @FileName: public_service
from datetime import datetime
from src.enums.status_enum import Status
from src.service.base_service import BaseService


class PublicService(BaseService):

    @staticmethod
    def get_sys_time():
        current_time = datetime.now()
        formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")

        return Status.OK, {"data": formatted_time}
